using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Serialization;

namespace Magnet.Framework.Syndication.Interfaces
{
    /// <summary>
    /// 
    /// </summary>
    [ISerializable]
    [XmlElement("enclosure")]
    public interface IRSSEnclosure
    {
        /// <summary>
        /// Gets or sets where the enclosure is located.
        /// </summary>
        /// <value>The URL.</value>
        [XmlAttribute("url")]
        Uri Url {get;set;}

        /// <summary>
        /// Gets or sets how big it is in bytes.
        /// </summary>
        /// <value>The length.</value>
        [XmlAttribute("length")]
        long Length { get;set;}

        /// <summary>
        /// Gets or sets the standard MIME type for the content.
        /// </summary>
        /// <value>The type of the content.</value>
        [XmlAttribute("type")]
        string ContentType { get;set;}
    }
}
